﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using groupAnalyzer.model;

namespace groupAnalyzer
{
    public class ContainerView : BaseView
    {
        public override IList<BaseView> Items
        {
            get
            {
                List<BaseView> items = new List<BaseView>();
                foreach (AbstractElementLdap element in this.RealObject.Childs)
                {
                   items.Add(ViewFactory.createView(element));
                }
                return items;
            }
        }

        public ContainerView(groupAnalyzer.model.AbstractElementLdap realObject)
            : base(realObject)
        {
        }
    }
}
